let vm = new Vue({
    el: '.main-content',
    data: {
        app: {}
    },
    methods: {
        doUpdate: function () {
            axios({
                url: "mapper/app/doUpdate",
                method: "post",
                data: this.app
            }).then(response => {
                // layer.msg(response.data.success())
                if (response.data.success) {
                    let index = parent.layer.getFrameIndex(window.name);
                    console.log(index);
                    parent.layer.close(index)
                }else {
                    layer.msg(response.data.msg)
                }
            }).catch(error => {
                layer.msg(error.message)
            })
        }
    },
    created: function () {
        this.app = parent.layer.obj;
    }

});